package jee.boot.entity.system;

import jee.boot.common.annotation.Table;
import jee.boot.common.basic.DataEntity;
import jee.boot.common.utils.HttpServletHolder;
import jee.boot.common.utils.StringUtils;

/**
 * 系统配置信息
 */
@Table(name = "st_system_config")
public class SystemConfig extends DataEntity<SystemConfig> {
    private static final long serialVersionUID = 1L;
    private String code;//配置代码
    private String name;//配置名称
    private String value;//配置值
    private String type;//配置类型
    private String desc;//配置描述

    public SystemConfig() {
    }

    public SystemConfig(String id) {
        super(id);
    }

    @Override
    public String getEntityKey() {
        return getProjectConfig().getName() + ":" + getCode();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
